﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _5.StringWith20Characters
{
    class StringWith20Characters
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Enter string with less than 20 characters");
            string input = Console.ReadLine();
            StringBuilder filledString = new StringBuilder(20);
            if (input.Length > 20)
            {
                Console.WriteLine("Wrong input!String must be less than 20 characters");
            }
            else
            {
                if (input.Length < 20)
                {
                    for (int i = 0; i < input.Length; i++)
                    {
                        filledString.Append(input[i]);
                    }
                    for (int j = input.Length+1; j <= 20; j++)
                    {
                        filledString.Append('*');
                    }
                    Console.WriteLine(filledString.ToString());
                }
                else
                {
                    if (input.Length==20)
                    {
                        Console.WriteLine(input);
                    }
                }
            }
        }
    }
}

